#set variables

$siteCollectionUrl = "http://turnersintranet/sites/DMS"
$year = 2012

#======================================================================================
# DELETE ALL EXISTING DATA IN GAT AND CA AND IMPORT DATA COPY THE FOLLOWING SECTION
$gatsCaSourceFile = "D:\Document Types\GAT\FinanceDocExport_18_05_2012_edit2.csv"
$gatsSourceFolder = "D:\Document Types\GAT\2012\"
$caSourceFolder = "D:\Document Types\Credit Application\2012\" 

#clean data in gats and ca and import data
#.\mainDocumentMigration.ps1 -option 3 -siteCollectionUrl $siteCollectionUrl -gatsCaSourceFile $gatsCaSourceFile -gatsSourceFolder $gatsSourceFolder -caSourceFolder $caSourceFolder
#END OF CLEAN IMPORT GAT AND CA SECTION
#======================================================================================

# SECTION BREAK

#======================================================================================
#KEEP EXISTING DATA IN GATS AND CA AND DO IMPORT NEW DATA
#$gatsCaSourceFile = "D:\Document Types\GAT\FinanceDocExport_18_05_2012_edit2.csv"
#$gatsSourceFolder = "D:\Document Types\GAT\2012\"
#$caSourceFolder = "D:\Document Types\Credit Application\2012\" 
#.\mainDocumentMigration.ps1 -option 4 -siteCollectionUrl $siteCollectionUrl -gatsCaSourceFile $gatsCaSourceFile -gatsSourceFolder $gatsSourceFolder -caSourceFolder $caSourceFolder

#END OF INCREMENTAL IMPORT GAT AND CA SECTION
#======================================================================================

# SECTION BREAK

#======================================================================================
# FOR EXTRA YEAR INVOICES IMPORT COPY THE FOLLOWING SECTION
$invoiceCsvSource = "D:\Document Types\Invoices containing multiple sales\2012-05-21-11-10-20.csv" 
$invoiceSourceFolder = "D:\Document Types\Invoices containing multiple sales\"

#create and import invoices for year 2012
Write-Host $invoiceSourceFolder
.\mainDocumentMigration.ps1 -option 5 -siteCollectionUrl $siteCollectionUrl -year $year -invoiceCsvSource $invoiceCsvSource -invoiceSourceFolder $invoiceSourceFolder

#END OF YAER INVOICES IMPORT SECTION
#======================================================================================